<?php

namespace api\modules\user\controllers;

use api\common\controllers\ApiController;
use yii\filters\AccessControl;
use yii;
use yii\base\DynamicModel;

/**
 * Public controller for the `user` module
 */
class PublicController extends ApiController
{
    /**
     * @return array
     *
     * ACF验证
     *
     * 所有请求均不要求验证ACCESS-TOKEN
     */
    public function behaviors ()
    {
        return [
            'access' => [
                'class' => AccessControl::className() ,
                'rules' => [
                    [
                        'allow'   => TRUE ,
                        'actions' => [] ,
                        'roles'   => [ '?' ] ,
                    ] ,
                ] ,
            ] ,
        ];
    }
}
